Skip to content

fix(resizer): keep height_quickfix when focus leaves the quickfix window - #183

Merged
beauwilliams merged 1 commit into
masterfrom
fix/179-quickfix-height
Nov 14, 2026
Merged

beauwilliams merged 1 commit into
masterfrom
fix/179-quickfix-height

Conversation

@beauwilliams

Copy link
Copy Markdown
Member

Fixes #179.

height_quickfix was applied only while the quickfix window was focused. When focus moved to another window, resizing that window changed the quickfix height.

Quickfix windows (filetype == 'qf') are now saved and restored as fixed-height windows during autoresize and equalise, using height_quickfix when it is greater than 0. maximise is unchanged.

Test: quickfix keeps height_quickfix when focus leaves in tests/test_autoresize.lua fails on master (qf height 7, expected 5) and passes with this change. The only failing test in the suite is setup() validates config argument, which also fails on master with Neovim 0.12.6.

The quickfix height was only applied while the quickfix window was
focused. Resizing the newly focused window then changed the quickfix
height. Treat quickfix windows as fixed-height during autoresize.

Fixes #179
@beauwilliams
beauwilliams merged commit 0f9047a into master Nov 14, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quickfix window is resized

1 participant